import {get, post, del, put} from "@/apis/http/request";
import {MemberUser} from "@/apis/model/member/MemberUserModel";

/**
* 得到列表
* @param params
*/
export const getMemberUserList = (params: any) => get("/memberUser/list", params)

/**
* 得到分页列表
* @param params
*/
export const memberUserPage = (params: any) => post("/memberUser/page", params)

/**
* 删除数据
* @param id
* @returns
*/
export const deleteMemberUserById = (id: number) => del("/memberUser/delete/"+ id)

/**
* 新增数据
* @param param
*/
export const insertMemberUser = (param: MemberUser) => post("/memberUser", param)

/**
* 更新数据
* @param param
*/
export const updateMemberUser = (param: MemberUser) => put("/memberUser", param)